ecaf7a
@@ -44,7 +44,7 @@
public static void setHiveConfWhiteList(HiveConf hiveConf) throws HiveAuthzPlugi
     String whiteListParamsStr = hiveConf
         .getVar(ConfVars.HIVE_AUTHORIZATION_SQL_STD_AUTH_CONFIG_WHITELIST);
 
-    if(whiteListParamsStr == null && whiteListParamsStr.trim().isEmpty()) {
+    if(whiteListParamsStr == null || whiteListParamsStr.trim().isEmpty()) {
       throw new HiveAuthzPluginException("Configuration parameter "
           + ConfVars.HIVE_AUTHORIZATION_SQL_STD_AUTH_CONFIG_WHITELIST.varname
           + " is not iniatialized.");
